import { Typography } from '@mui/material';
import { useEffect } from 'react';
import { useIntersectionObserver } from 'react-intersection-observer-hook';

const TermsOfServiceContent = ({ onEndScroll = () => undefined }) => {
    const [ref, { entry }] = useIntersectionObserver();
    const isVisible = entry && entry.isIntersecting;

    useEffect(() => {
        if (isVisible) {
            onEndScroll();
        }
    }, [isVisible]);

    return (
        <>
            <Typography variant="h4">1. TERMS AND CONDITIONS OF SERVICE</Typography>
            <br />

            <Typography variant="body2">
                The following terms and conditions govern your access to, and use of, the XLD
                services that includes, but is not limited to the{' '}
                <a href="https://gfs.xld.finance">gfs.xld.finance</a> application (the
                “Application”), and all content, products, promotions, Services and functionality
                available at or through the Application (collectively, the “Services”).
            </Typography>
            <br />

            <Typography variant="body2">
                The Application allow users to simultaneously disburse the cryptocurrencies such as
                SLP and USDT across multiple wallets, which then acts similarly as a salary
                disbursement tool for guild managers.
            </Typography>
            <br />

            <Typography variant="body2">
                Consumers who have used the Application will be able to disburse cryptocurrencies to
                multiple wallets simultaneously. The Services offered are subject to the terms and
                conditions contained herein and in all other operating rules, policies and
                procedures that may be published from time to time through the Services by XLD
                (collectively, this “Agreement”).
            </Typography>
            <br />

            <Typography variant="body2">
                PLEASE READ THIS AGREEMENT AND TERMS OF SERVICES AND OUR PRIVACY POLICY CAREFULLY
                BEFORE DOWNLOADING AND USING THE APPLICATION OR USING ANY OF THE OTHER SERVICES.
            </Typography>
            <br />

            <Typography variant="body2">
                By clicking or ticking the “Agree” box prior to completing the transaction process,
                or by accessing or using any other part of the Services, you agree to be bound by
                the terms and conditions of this Agreement, which forms a legally binding contract
                between you and XLD. If you do not agree to all the terms and conditions of this
                Agreement, then you will not be able to use any Services. If you are using the
                Services on behalf of an employer or another entity, you represent and warrant that
                you have the authority to bind such entity to this Agreement.
            </Typography>
            <br />

            <Typography variant="body2">
                The Services are available only to individuals who are at least 18 years old. If you
                are less than 18 years old, you may not use the Services.
            </Typography>
            <br />

            <Typography variant="body2">
                XLD will be accessible across several markets, and as such, English will be the
                official translation of the Terms and Conditions. Should there be any policy changes
                in the future, XLD reserves the right to modify the terms and conditions without
                giving the customer any prior notice, but the continued use of the customer of the
                Application or the Service upon notice of the changes shall be deemed as consent to
                such modifications.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">2. ACCEPTABLE USE POLICY</Typography>
            <br />

            <Typography variant="body2">
                The Services are only available for your access and use for lawful purposes. You
                understand that when using the Site or Application, you may be exposed to user
                content provided by other users or third parties, and you agree that XLD is not
                responsible for the accuracy, safety, appropriateness or intellectual property
                rights in, or related to, such user content. Any act committed by End Users or third
                parties associated with the End User’s account (which may also refer to the End
                User’s linked crypto wallet), which (a) violates the Agreement; (b) restricts,
                inhibits, disrupts, interferes with, limits, or prevents access or use of the
                Services; or (c) through the use of the Services, abuses, defames, harasses,
                disparages or threatens another End User of the Services or any other third party,
                is strictly forbidden.
            </Typography>
            <br />

            <Typography variant="body2">
                The following are prohibited activities:
                <br />
                <ul>
                    <li>
                        using hacked/rooted/jailbroken devices to manipulate device information when
                        using the Services;
                    </li>
                    <li>solicitation for commercial purposes of other users of the Application;</li>
                    <li>using metatags or any other “hidden text”; </li>
                    <li>
                        utilizing any of our, or any third party’s, product names or trademarks;
                    </li>
                    <li>harvesting or otherwise collecting Personal Information about users;</li>
                    <li>
                        using any robot, spider, crawler, scraper or other automated means to access
                        the Services;
                    </li>
                    <li>
                        taking any action that imposes or may impose an unreasonable or
                        disproportionately large load on our technical infrastructure; or
                    </li>
                    <li>
                        bypassing any measure we may use to prevent or restrict access to the
                        Services or certain features or modules of the Services.
                    </li>
                </ul>
            </Typography>
            <br />

            <Typography variant="body2">
                We reserve the right to immediately block or disable your ability to use the
                Application, and/or otherwise suspend or terminate your access to the Services, if
                we believe that you have engaged in any of the foregoing activities or that they
                have occurred in association with your account or password.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">3. TERMINOLOGIES</Typography>
            <br />

            <Typography variant="body2">
                This section covers the definitions of terms that may recur across the whole
                agreement:
                <br />
                <ul>
                    <li>Agreement - refers the terms and conditions stated in this document.</li>
                    <li>
                        Application - refers to the XLD services that includes, but is not limited
                        to the gfs.xld.finance application.
                    </li>
                    <li>
                        End-User - refers to the customers of XLD who use the Application or the
                        Services.
                    </li>
                    <li>
                        Feedback - refers to all suggestions, requests and feedback communicated to
                        us regarding the Services, and all inventions, improvements, modifications,
                        product or Services ideas, and concepts contained therein.
                    </li>
                    <li>
                        Indemnified Parties - refers to XLD, its affiliates and its and their
                        respective members, managers, officers, employees, representatives and
                        agents.
                    </li>
                    <li>
                        Services - refers to all content, products, promotions, Services and
                        functionality available at or through the Application and the Site.
                    </li>
                    <li>
                        GFS - refers to the ecosystem project that allows customers to
                        simultaneously disburse cryptocurrency across multiple wallets.{' '}
                    </li>
                </ul>
            </Typography>
            <br />
            <br />

            <Typography variant="h4">4. INTELLECTUAL PROPERTY RIGHTS</Typography>
            <br />

            <Typography variant="body2">
                The proprietary software associated with the Application and the Services, including
                any enhancements or modifications thereto and any related documentation, as well as
                the visual and textual elements and the selection, arrangement and compilation of
                data embodied in (and/or displayed during the execution of) the software, are
                copyrighted works and exclusively owned by XLD. In addition, the Services, including
                all software, XLD content, inventions, technology, products, Services and XLD data
                provided on the Site or through the Services, are protected under Singapore and
                international copyright, patent, trademark and/or other intellectual property laws
                and incorporate valuable confidential information and trade secrets of XLD, and are
                the exclusive property of XLD and its licensors. All suggestions, requests and
                feedback communicated to us regarding the Services, and all inventions,
                improvements, modifications, product or Services ideas, and concepts contained
                therein (collectively, “Feedback”), shall become the exclusive property of XLD. You
                hereby assign all worldwide rights, title and interest in, to and under any Feedback
                to XLD and agree to execute and deliver any assignments or other instruments or
                documents that we may request in order to confirm, perfect, record or enforce our
                rights with respect to the Feedback.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">5. LIMITED LICENSE</Typography>
            <br />

            <Typography variant="body2">
                Subject to your compliance with all of the terms and conditions of this Agreement,
                and in consideration of your undertakings stated in this Agreement, XLD grants you a
                limited, personal, non-exclusive, revocable, non-sublicensable, non-transferable
                license to (a) use the Application, and (b) use the Services, in each case for your
                personal purposes but not for commercial resale, sublicensing, time-sharing or
                services bureau usage. All rights not expressly granted to you by the foregoing
                sentence are reserved by XLD. You may not interfere with the Services in any way, or
                copy, modify, distribute or reverse engineer, decompile or disassemble the
                Application or the Services, or make any derivative works based on the Application
                or the Services (including any customization, translation, or localization). Your
                compliance with the requirements in this Section 4 is a condition to, and material
                inducement and consideration for, our granting you the right to access and use the
                Application and the Services. Any unauthorized use or other activity by you in
                violation of this Agreement will cause the licenses granted to you by XLD in this
                Section 4 to terminate automatically.
            </Typography>
            <br />

            <Typography variant="body2">
                This Agreement does not transfer from XLD to you any XLD or third party intellectual
                property, and all rights, title and interest in, to, and under, such property will
                remain solely with XLD or such third party, as applicable. All rights not expressly
                granted in this Agreement are reserved to XLD. The following marks: XLD,
                xld.finance, the XLD logo, PR, and all other trademarks, services mark, graphics and
                logos used or displayed in connection with the Application and the Services are
                trademarks or registered trademarks of XLD or XLD’s licensors. Your use of the
                Application and the Services does not grant you any right or license to reproduce or
                otherwise use any XLD or third-party trademarks.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">6. END USER ACCOUNTS</Typography>
            <br />

            <Typography variant="body2">
                If you use the Services, you are responsible for maintaining the security of your
                account, and you are fully responsible for all activities that occur under the
                account. You must not use another person’s account or share your password with
                another person. You agree to immediately notify XLD of any unauthorized usage of
                your account or any other breaches of security. XLD will not be liable for any acts
                or omissions by you, including any damages of any kind incurred as a result of such
                acts or omissions.
            </Typography>
            <br />

            <Typography variant="body2">A. XLD Application</Typography>
            <br />

            <Typography variant="body2">
                When you visit and use the XLD Application , you will be prompted to link your
                crypto wallet. After that, all of your interactions with XLD will be recorded,
                stored in our servers, and associated with your account. Among other things, your
                account will keep track of your transaction options and your transaction history.
            </Typography>
            <br />

            <Typography variant="body2">
                By using the Application, you will be able to disburse your cryptocurrency across
                multiple wallets simultaneously.
            </Typography>
            <br />

            <Typography variant="body2">B. Application Generally</Typography>
            <br />

            <Typography variant="body2">
                When you are using the Application, your linked crypto wallet acts as your account.
                The Application are able to support transactions primarily on Binance Smart Chain.
                The Application currently support two crypto currencies, namely: Smooth Love Potion
                (SLP) and Tether (USDT)
            </Typography>
            <br />
            <br />

            <Typography variant="h4">7. MOBILE AND INTERNET SERVICES</Typography>
            <br />

            <Typography variant="body2">
                Whenever you utilize the Service you hereby represent and warrant that you are the
                owner or authorized user of any wireless device that you use to access the Services,
                and that you are authorized to approve all associated data charges.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">8. THIRD PARTY LINKS AND SITES</Typography>
            <br />

            <Typography variant="body2">
                XLD is not responsible and shall not be liable for any and all material made
                available through the Services, or websites, web pages and application to which any
                content, the Application or the Site links, or with which they are integrated (such
                as Facebook), or that link to the Application or the Site (“Third Party Sites”). XLD
                does not have any control over Third Party Sites, does not recommend or endorse
                them, and is not responsible for their contents or their use. We do not exercise any
                control over privacy or security practices or any act of Third Party Sites in
                respect of collection, storage, use or disclosure of your information. You should
                read, and are responsible for complying with, the privacy policies, use or service
                agreements or terms of use, and any other policies of Third Party Sites.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">9. UPDATES and AMENDMENTS</Typography>
            <br />
            <br />

            <Typography variant="body2">
                We are constantly innovating in order to provide the best possible experience for
                our users. You acknowledge and agree that the form, features and/or nature of the
                Application and the Services which we provide may change from time to time without
                prior notice to you. We may also cease or discontinue providing the Application or
                the Services, or support or upgrades for the Application, at any time.
            </Typography>
            <br />

            <Typography variant="body2">
                XLD reserves the right, at its sole discretion, to amend or update any part of the
                Agreement by posting the amended or updated Agreement on the Site or making it
                available through the Application. Your continued use of or access to the Services
                following the posting or distribution of any changes to the Agreement constitutes
                acceptance of those changes.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">10. TERMINATION</Typography>
            <br />

            <Typography variant="body2">
                XLD may terminate your access to all or any part of the Services, or block or
                disable your access or use of the Application, at any time, with or without cause,
                with or without notice, effective immediately.
            </Typography>
            <br />

            <Typography variant="body2">
                XLD may terminate your access to all or any part of the Services, or block or
                disable your access or use of the Application, if (a) XLD reasonably believes that
                you have breached any provision of the Agreement (or have acted in manner which
                shows that you do not intend to, or are unable to comply with the provisions of the
                Agreement); (b) XLD is required to do so by law ; (c) XLD is transitioning to no
                longer providing the Application to users in the state or country in which you are
                resident or from which you use the Application; or (d) XLD reasonably believes that
                your use of the Application may infringe or violate the rights of a third party or
                subject XLD to civil or criminal liability or reputational harm.
            </Typography>
            <br />

            <Typography variant="body2">
                Termination will result in the forfeiture and destruction of all information
                associated with your account. All provisions of this Agreement which by their nature
                should survive termination of this Agreement, such as ownership provisions, warranty
                disclaimers, indemnity, limitations of liability, and miscellaneous terms, shall do
                so.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">11. REFUND POLICY</Typography>
            <br />

            <Typography variant="body2">
                Customers who encounter a failed transaction through system errors may be eligible
                for refund. The user will have to report and send an email to gfs@xld.finance to
                share the following details to allow XLD to investigate:
                <br />
                <ul>
                    <li>Organization name / Guild name</li>
                    <li>Brief description of issue</li>
                    <li>Title of disbursement</li>
                    <li>Transaction hash of the disbursement being contested</li>
                    <li>
                        * Wallet address where to send the refund (Only if it’s valid for refund)
                    </li>
                </ul>
            </Typography>
            <br />
            <br />

            <Typography variant="h4">12. DISCLAIMER</Typography>
            <br />

            <Typography variant="body2">
                Your use of the Services is at your own risk. The Services are provided on an “as
                is” or “as available” basis, without any warranties of any kind. XLD and its
                officers, employees, representatives, affiliates and agents disclaim all warranties,
                express or implied, in connection with the Services or your use thereof including,
                any and all warranties of merchantability, fitness for a particular purpose,
                security, freedom from viruses, and non-infringement of intellectual property or
                proprietary rights.
            </Typography>
            <br />

            <Typography variant="body2">
                XLD makes no warranties or representations in respect of the accuracy or
                completeness of the Services or the content of any other products or services linked
                to or integrated with the Services (including any ad content) and assumes no
                liability or responsibility for (i) errors, mistakes, omissions or inaccuracies of
                content, (ii) personal injury or property damage, of any nature whatsoever,
                resulting from your access to and use of the Services, (iii) any unauthorized access
                to, or use of, the Services, your account or our servers, or any and all personal
                information stored therein, (iv) any interruption or cessation of, transmission to,
                or from, the Services, (v) any bugs, viruses, trojan horses, malware, adware or the
                like which may be transmitted to, or through, the Services by any third party, (vi)
                any loss or damage to content or data (whether stored through the Services or
                otherwise), or (vii) any loss or damage of any kind incurred as a result of the use
                of any content posted, e-mailed, imported, transmitted, distributed, or otherwise
                made available via the Services.
            </Typography>
            <br />

            <Typography variant="body2">
                XLD does not warrant, endorse, guarantee or assume responsibility for any product,
                services or opportunity offered by a third party through the Services, or any
                hyperlinked or integrated website or services.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">13. LIMITATION OF LIABILITY</Typography>
            <br />

            <Typography variant="body2">
                Under no circumstances shall XLD or its directors, shareholders, officers,
                employees, representatives, affiliates, agents, or suppliers be liable for indirect,
                incidental, special, punitive, consequential or exemplary damages (including, but
                not limited to, lost profits or damages arising from your use of or inability to use
                the Services) whatsoever, whether based on warranty, contract, tort or any other
                legal theory, and whether or not XLD or any of the foregoing persons were advised of
                the possibility of such damages.
            </Typography>

            <Typography variant="body2">
                You agree that the liability of XLD and its affiliates, directors, shareholders,
                officers, employees, representatives, agents, and suppliers for any claim or series
                of claims will be limited in the aggregate to the amount you paid to us for the
                relevant Services to which the claim or claims relate during the previous six (6)
                months preceding the event or circumstances giving rise to such claim or series of
                claims.
            </Typography>

            <Typography variant="body2">
                XLD will not be held liable for any mistaken or failed transactions that might have
                been caused by the customers negligence that may result in, but not be limited to
                (a) paying the wrong wallet, (b) paying the wrong amount for the designated wallet,
                and (c) sending out the wrong token to be paid out.
            </Typography>

            <Typography variant="body2">
                The foregoing limitations of liability shall apply to the fullest extent permitted
                by law.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">14. REPRESENTATIONS & WARRANTIES</Typography>
            <br />

            <Typography variant="body2">
                You represent and warrant that (i) your use of the Services will be in strict
                accordance with this Agreement and with all applicable laws and regulations; and
                (ii) your use of the Services will not infringe or misappropriate the intellectual
                property rights or any other rights of XLD or of any other user or third party.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">15. INDEMNIFICATION</Typography>
            <br />
            <Typography variant="body2">
                To the extent permitted by applicable law, you agree to defend, indemnify and hold
                harmless XLD, its affiliates and its and their respective members, managers,
                officers, employees, representatives and agents (the “Indemnified Parties”) from and
                against any and all claims, actions, lawsuits, damages, obligations, complaints,
                demands, allegations, losses, liabilities, costs or debt, and expenses (including,
                but not limited to, reasonable attorneys’ fees) arising out of or related to or in
                connection with your actual or alleged (a) use of and access to the Services, the
                Site and the Application, (b) violation, breach or default of any term of this
                Agreement, (c) violation by you or infringement of any third party right including,
                but not limited to, any patent, trademark, Services mark, copyright, trade secret,
                publicity or privacy right, or (d) any claim that you or any content which you
                submit or transmit via the Services (including, without limitation, your Content)
                caused damage to a third party.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">16. NOTICES</Typography>
            <br />
            <Typography variant="body2">
                All notices, demands and other communications hereunder shall be in writing and
                shall be effective upon receipt, provided that we may provide notice to you by
                posting announcements on the Site, making them available through the Services or
                sending an email to you at the email address that is currently associated with your
                account. Any such email notice to you will be deemed given on the day it is sent.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">17. MISCELLANEOUS</Typography>
            <br />
            <Typography variant="body2">
                You agree that no joint venture, partnership, employment or agency relationship
                exists between you and us or any of our affiliates as a result of this Agreement or
                your use of the Services. This Agreement, and all other XLD operating policies,
                rules and procedures posted on the Site or the Application, constitute the entire
                agreement between XLD and you concerning the subject matter hereof, and may only be
                modified by a written amendment signed by a duly authorized representative of XLD,
                or by an amendment or revision posted on the Site or the Application or made
                available through the Services.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">18. SEVERABILITY</Typography>
            <br />
            <Typography variant="body2">
                Any provision of this Agreement prohibited by, or which is unlawful or unenforceable
                under any applicable law as pronounced by any court of competent jurisdiction shall,
                to the extent required by such law, be severed from this Agreement and rendered
                ineffective so far as is possible without modifying the remaining provisions of this
                Agreement. Where, however, the provisions of any such applicable law may be waived,
                they are hereby waived by the parties hereto to the full extent permitted by such
                law, to the end that this Agreement shall be a valid and binding agreement
                enforceable in accordance with its terms.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">19. LAW AND JURISDICTION</Typography>
            <br />
            <Typography variant="body2">
                This Agreement shall be governed by, and construed in all respects in accordance
                with, the laws of the Philippines.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">20. VENUE OF LITIGATION</Typography>
            <br />
            <Typography variant="body2">
                The parties agree that the venue for any dispute connected with this Agreement shall
                be the relevant court with jurisdiction in the Philippines.
            </Typography>
            <br />
            <br />

            <Typography variant="h4">21. THIRD PARTY TERMS</Typography>
            <br />
            <Typography variant="body2">
                End Users agree that in addition to this Agreement, if an application utilizes a
                third-party service such as but not limited to emails, it is thus subject to the
                usage rules set forth in the third party Terms of Services, or to the rules of other
                third party platforms, developers or distributor end-users from which the
                Application uses. End Users agree to comply with the applicable third party terms.
            </Typography>
            <br ref={ref} />
            <br />
        </>
    );
};

export default TermsOfServiceContent;
